//企业模块
//添加企业
import {transfer} from "./axiosApi";

export function AddCompany(data) {
    return transfer({
        method: 'post',
        data,
        url: '/Company/add',
    })
}

//修改企业
export function updateCompany(data) {
    return transfer({
        method: 'post',
        data,
        url: '/Company/update',
    })
}

//删除公司
export function deleteCompany(id) {
    return transfer({
        params: {id},
        url: '/Company/del'
    })
}

export function QueryCompany(data) {
    return transfer({
        method: 'post',
        data,
        //condition条件
        url: '/Company/page',
    })
}

//查询统计信息
export function QueryCompanyStatistics(params) {
    return transfer({
        url: '/Company/statistics',
        params
    })
}

//企业所在楼栋信息
export function listGroupByBuildingIndex(params) {
    return transfer({
        url: '/Company/listGroupByBuildingIndex',
        params
    })
}